package com.example.day_day_up.service;

import com.example.day_day_up.entity.dto.EditUserDTO;
import com.example.day_day_up.entity.po.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface UserService {
    void login(HttpServletRequest req, HttpServletResponse resp);

    void sign(HttpServletRequest req, HttpServletResponse resp);

    void logout(HttpServletRequest req, HttpServletResponse resp);

    void updateAvatar(String avatar, HttpServletRequest req);

    void resetPassword(HttpServletRequest req, HttpServletResponse resp);

    List<EditUserDTO> getUserInPage(int currentPage);

    int getPageCount();

    void addUser(String id, String password, int status, HttpServletResponse resp);

    void updateUser(User updatedUser, HttpServletResponse resp);

    List<User> getAllUserOrderedByScore(HttpServletRequest req, HttpServletResponse resp);
}
